<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class PermissionCategory extends Model
{
    use Helper;

    protected $table = 'permission_category';

    const STATUS_ENABLED = 1;
    const STATUS_DISABLED = 2;

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'status' => [
                self::STATUS_ENABLED => '有效',
                self::STATUS_DISABLED => '无效',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}